package cn.itsource.langxun.util;
/*
* Ajax结果的封装
* */
public class AjaxResult {
    private Boolean success=true;
    private String message="成功";
    private Object restobj;

    public AjaxResult() { }

    public static AjaxResult li(){
            return new AjaxResult();
    }
    public Boolean getSuccess() {
        return success;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getRestobj() {
        return restobj;
    }

    public AjaxResult setRestobj(Object restobj) {
        this.restobj = restobj;
        return this;
    }
}
